package com.briup.myblog.service;

import com.briup.myblog.bean.basic.Article;
import com.briup.myblog.bean.ext.ArticleExt;
import com.github.pagehelper.PageInfo;

import javax.servlet.http.HttpServletRequest;

public interface IArticleService {
    String changeArticlStatus(Integer id, Integer status);

    //更新或保存信息中根据id有无选择
    String changeInsertOrUpdate(Article article);

    void deleteArticleById(Integer article_id);

    ArticleExt findArticleJointById(Integer article_id);

    PageInfo<ArticleExt> findArticleByStatus(Integer pageNum, Integer pageSize);

    //判断选择哪个方法
    PageInfo<ArticleExt> changeFind(String article_title, Integer category_id, Integer article_status, Integer pageNum, Integer pageSize);

}
